﻿using System;
using System.Collections.Generic;
using System.Runtime.Serialization;

using SBPweb.PlAzureNet.Shared.Library.Actors;

namespace SBPweb.PlAzureNet.Server.Data.Actors
{

    partial class Action : IAction
    {

        //IPerson IAction.Person
        //{
        //    get
        //    {
        //        return this.Person;
        //    }
        //    set
        //    {
        //        this.Person = value as Person;
        //    }
        //}

        [DataMember(Name = "RequestAsEnum")]
        ActionTypes IAction.Request
        {
            get
            {
                return (ActionTypes)this.Request;
            }
            set
            {
                this.Request = (int)value;
            }
        }

        [DataMember(Name = "ResultAsEnum")]
        ActionTypes? IAction.Result
        {
            get
            {
                return this.Result.HasValue ? ((ActionTypes)this.Result.Value) : default(ActionTypes?);
            }
            set
            {
                this.Result = value.HasValue ? (int)value.Value : default(int?);
            }
        }

        //IPleasure IAction.Pleasure
        //{
        //    get
        //    {
        //        return this.Pleasure;
        //    }
        //    set
        //    {
        //        this.Pleasure = value as Pleasure;
        //    }
        //}

        //IRound IAction.Round
        //{
        //    get
        //    {
        //        return this.Round;
        //    }
        //    set
        //    {
        //        this.Round = value as Round;
        //    }
        //}

        public IEnumerable<IMetaInfo> Infos
        {
            get;
            set;
        }

    }

}